﻿using ComicQ.Domain.Table;
using FluentNHibernate.Mapping;

namespace ComicQ.Domain.Mapping
{
    sealed class PublisherMap : ClassMap<Publisher>
    {
        public PublisherMap()
        {
            Id(x => x.Id);
            Map(x => x.Name);
            Map(x => x.Address);
            HasMany(x => x.Comics).Cascade.All().Inverse();
        }
    }
}
